
<div class="layui-upload" id="upload-thumb">
    <label class="layui-form-label">图片</label>
    <button type="button" class="layui-btn" id="selectfiles">阿里oss上传图片</button>
    <div class="layui-upload-list">
        <label class="layui-form-label"></label>

        <img class="layui-upload-img" id="demo1" width="150" height="150" {notempty name="$banner.attachment_id"}src="{$banner.attachment_id|geturl}"{/notempty}>
        <p id="demoText"></p>
    </div>
</div>
<script type="text/javascript" src="__PUBLIC__/ali-oss/lib/plupload-2.1.2/js/plupload.full.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/ali-oss/upload.js"></script>